﻿using System;
using System.Collections.Generic;

namespace Matrix.MaKaYunShang.Model
{
	/// <summary>
	///卡卷发放规则表
	/// </summary>
	public class CardRuleBase
	{
		#region 默认属性
      	/// <summary>
		/// Id
        /// </summary>		
        public int Id { get; set; }        
		/// <summary>
		/// 商家id
        /// </summary>		
        public int ShopId { get; set; }        
		/// <summary>
		/// 开始时间
        /// </summary>		
        public DateTime StartTime { get; set; }        
		/// <summary>
		/// 结束时间
        /// </summary>		
        public DateTime EndTime { get; set; }        
		/// <summary>
		/// 权重值 (优先级)
        /// </summary>		
        public int WeightValue { get; set; }        
		/// <summary>
		/// 添加人id（商户）
        /// </summary>		
        public int AddMerchantUserId { get; set; }        
		/// <summary>
		/// 添加时间
        /// </summary>		
        public DateTime AddTime { get; set; }        
		/// <summary>
		/// 是否已删除（True已删除，False未删除）
        /// </summary>		
        public bool IsDelete { get; set; }        
				#endregion
		
		#region 扩展属性
        /// <summary>
        /// 规则细则列表
        /// </summary>
        public List<CardRuleDetail> RuleDetailList { get; set; }
        public string RuleDetailString { get; set; }
        /// <summary>
        /// 是否为当前时间内
        /// </summary>
        public bool IsNow { get; set; }
		#endregion
	}
}